package eventos.barraMenu;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import controlador.ControladorEditor;

import memento.IControladorDesReHacer;


public class EventoRehacer extends MouseAdapter {

	private IControladorDesReHacer controlador;

	public EventoRehacer(IControladorDesReHacer controlador)
	{
		super();
		this.controlador = controlador;
	}
	
	public void mouseClicked(MouseEvent e) {	
		this.controlador.rehacer();
		ControladorEditor.getInstancia().actualizarVista();
	}
}
